﻿namespace AiQiuQuan.Sport.Model.Models
{
    /// <summary>
    /// 微信回调
    /// </summary>
    public class WxCallbackDto
    {
        /// <summary>
        /// 商户号
        /// </summary>
        public string MerchantId { get; set; }

        /// <summary>
        /// 时间戳
        /// </summary>
        public string Timestamp { get; set; }

        /// <summary>
        /// 随机数
        /// </summary>
        public string Nonce { get; set; }

        /// <summary>
        /// 签名
        /// </summary>
        public string Signature { get; set; }

        /// <summary>
        /// 证书序列号
        /// </summary>
        public string SerialNumber { get; set; }
    }

    /// <summary>
    /// 微信回调回复
    /// </summary>
    public class WxResponseDto
    {
        /// <summary>
        /// SUCCESS:成功；其他均为失败
        /// </summary>
        public string Code { get; set; } = "SUCCESS";

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }
    }

    /// <summary>
    /// 微信支付回调
    /// </summary>
    public class WxPayCallbackDto : WxCallbackDto
    {
        /// <summary>
        /// 回调加密内容
        /// </summary>
        public string Content { get; set; }
    }
}
